#!/usr/bin/python
# -*- coding: utf-8 -*-

import xmlrpclib
import sys

server = xmlrpclib.ServerProxy("http://194.95.188.36:8050") # [194.95.188.36:8050])
session_id = server.dwds.login("uni01","$dwds01") # anmelden und session schlüssel holen

s=unicode(sys.argv[1], 'iso-8859-1')+"\n" # Input aus dem ersten Parameter des Kommandozeilenaufrufes
result = server.dwds.processor.tomata.analyse(session_id,s,"tomata","text","csv","",0)

print result

